//
//  CoreWork.h
//  FMJY
//
//  Created by 艾玩科技 on 17/4/5.
//  Copyright © 2017年 随心. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "RequestWork.h"

@interface CoreWork : NSObject
#pragma mark -- 登录 -- 
+(void)loginWithuname:(NSString *)uname upwd:(NSString *)upwd deviceToken:(NSString *)deviceToken deviceInfo:(NSString *)deviceInfo Block:(void(^)(id responsObject))block;
#pragma mark -- 用户退出app --
+(void)logOutWithloginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;
#pragma mark -- 签入车辆 --
+(void)signInWithloginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;
#pragma mark -- 签出车辆 --
+(void)signOutWithloginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;
#pragma mark -- 开始 OR 停止 接单 --
+(void)startGetOrderWithloginToken:(NSString *)loginToken allowOrder:(NSString *)allowOrder Block:(void(^)(id responsObject))block;
#pragma mark -- 司机到达事故现场 --
+(void)driverArrivedWithorderNo:(NSString *)orderNo loginToken:(NSString *)loginToken lng:(NSString *)lng lat:(NSString *)lat arrivePics:(NSString *)arrivePics Block:(void(^)(id responsObject))block;
#pragma mark  --  未结单接口 --
+(void)UnFinishedOrderWithloginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;
#pragma mark -- 获取订单列表
+(void)orderListWithloginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;
#pragma mark -- 接单接口 --
+(void)getOrderWithorderNo:(NSString *)orderNo lng:(NSString *)lng lat:(NSString *)lat loginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;
#pragma mark -- 取消回执 --
+(void)cancleBackWithorderNo:(NSString *)orderNo lng:(NSString *)lng lat:(NSString *)lat loginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;
#pragma  mark -- 订单详情接口 --
+(void)getDetailOrderWithorderNo:(NSString *)orderNo loginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;
#pragma mark -- 司机拖车上板 --
+(void)DriverArriveWithorderNo:(NSString *)orderNo lng:(NSString *)lng lat:(NSString *)lat loginToken:(NSString *)loginToken trailPics:(NSString *)trailPics Block:(void(^)(id responsObject))block;
#pragma  mark -- 订单完成的接口 --
+(void)OrderCompleteWithorderNo:(NSString *)orderNo lng:(NSString *)lng lat:(NSString *)lat loginToken:(NSString *)loginToken destPics:(NSString *)destPics Block:(void(^)(id responsObject))block;
#pragma mark -- 司机接单时选择到达现场的时间 --
+(void)DriverBeSureArriveTimeWithorderNo:(NSString *)orderNo arriveTime:(NSString *)arriveTime loginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;
#pragma mark -- 服务商未完成订单列表 --
+(void)ServiceProviderUnFinishOrderListWithloginToken:(NSString *)loginToken page:(NSNumber* )page pageSize:(NSNumber* )pageSize Block:(void(^)(id responsObject))block;
#pragma mark -- 服务商 拒绝接单  OR 接单 接口 --
+(void)ServiceRejectGetOrderWithorderNo:(NSString *)orderNo lng:(NSString *)lng lat:(NSString *)lat loginToken:(NSString *)loginToken flag:(NSString *)flag Block:(void(^)(id responsObject))block;

#pragma mark -- 更改司机 --
+(void)changeDriverWithorderNo:(NSString *)orderNo orderMark:(NSString *)orderMark  loginToken:(NSString *)loginToken userDriverId:(NSString *)userDriverId Block:(void(^)(id responsObject))block;
#pragma mark  --  查询在线司机 --
+(void)onlineDriverWithloginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;
#pragma mark -- 司机完成订单时添加备注 --
+(void)addBeizhuWithorderNo:(NSString *)orderNo orderMark:(NSString *)orderMark  loginToken:(NSString *)loginToken Block:(void(^)(id responsObject))block;

#pragma mark -- 司机到达事故现场 (图片是数组)--
+(void)driverArrivedWithorderNo:(NSString *)orderNo loginToken:(NSString *)loginToken lng:(NSString *)lng lat:(NSString *)lat arrivePicsArr:(NSMutableArray *)arrivePicsArr Block:(void(^)(id responsObject))block;
#pragma  mark -- 订单完成的接口 --（图片是数组）
+(void)OrderCompleteWithorderNo:(NSString *)orderNo lng:(NSString *)lng lat:(NSString *)lat loginToken:(NSString *)loginToken destPicsArr:(NSMutableArray *)destPicsArr Block:(void(^)(id responsObject))block;
#pragma mark -- 司机拖车上板 (图片是数组)--
+(void)DriverArriveWithorderNo:(NSString *)orderNo lng:(NSString *)lng lat:(NSString *)lat loginToken:(NSString *)loginToken trailPicsArr:(NSMutableArray *)trailPicsArr Block:(void(^)(id responsObject))block;
#pragma mark -- 分配司机 --
+(void)assignDriverWithorderNo:(NSString *)orderNo  loginToken:(NSString *)loginToken userDriverId:(NSString *)userDriverId Block:(void(^)(id responsObject))block;
@end
